package com.dq.controller.in.orders;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * @author cf
 */
@Data
@ApiModel(value = "退货单生成接参")
public class UserOrderReturnSave implements Serializable {
    @ApiModelProperty("销售单Id")
    public Long ordersId;
    @ApiModelProperty("退货单详情信息")
    public List<UserOrderReturnInfo> returnInfoList;

    @ApiModelProperty("退货金额")
    public BigDecimal price;
    @ApiModelProperty("备注")
    public String remark;

    @Data
    public static class UserOrderReturnInfo {
        @ApiModelProperty("退货商品ID(orderinfo id)")
        public Long ordersId;
        @ApiModelProperty("退货商品数量")
        public Long returnCount;
    }
}
